<?php

use think\facade\Env;

//return [
//    // 默认磁盘
//    'default' => Env::get('filesystem.driver', 'local'),
//    // 磁盘列表
//    'disks'   => [
//        'local'  => [
//            'type' => 'local',
//            'root' => app()->getRuntimePath() . 'storage',
//        ],
//        'public' => [
//            // 磁盘类型
//            'type'       => 'local',
//            // 磁盘路径
//            'root'       => app()->getRootPath() . 'public',
//            // 磁盘路径对应的外部URL路径
//            'url'        => '/storage',
//            // 可见性
//            'visibility' => 'public',
//        ],
//        // 更多的磁盘配置信息
//    ],
//];
return [
    "default" => "qiniu",
    "disks" => [
        "public" => [
            "type" => "local",
            "root" => ".",
            "visibility" => "public"
        ],
        "qiniu" => [
            "type" => "qiniu",
            "accessKey" => "VzhjqOMyngjc0eRFSsJ6DOKDwewSwxAVqA8X_BTw",
            "secretKey" => "2WsBKqQbSxDHpR5kXWoDInAdFDtDTq0NuPc790dy",
            "bucket" => "chuchu-cms",
            "domain" => "https://up-z1.qiniup.com",
            "cdn" => "http://chuchu-file.180wx.cn"
        ],
        "oss" => [
            "type" => "oss",
            "accessId" => "",
            "accessSecret" => "",
            "bucket" => "",
            "endpoint" => "",
            "domain" => "",
            "cdn" => ""
        ],
        "cos" => [
            "type" => "cos",
            "region" => "ap-beijing",
            "credentials" => [
                "appId" => "",
                "secretId" => "",
                "secretKey" => ""
            ],
            "bucket" => "",
            "domain" => "",
            "cdn" => "",
            "scheme" => ""
        ]
    ]
];